package ru.st.selenium.applogicImp;


import ru.st.selenium.applogicTop.NavigationHelper;

public class NavigationHelperImp extends DriverBasedHelper implements NavigationHelper {

  private String baseUrl;

  public NavigationHelperImp(ApplicationManagerImp manager) {
    super(manager.getWebDriver());
    this.baseUrl = manager.getBaseUrl();
  }

	@Override
	public void openMainPage() {
		driver.get(baseUrl);
	}

	@Override
	public void openRelativeUrl(String url) {
		driver.get(baseUrl + url);
	}
	
	@Override
	// Уходим из фрейм опять в ТОР
	public void gotoTopFrem() {
		driver.switchTo().defaultContent();
	}
	

	@Override
	public void maximizeWindow() {
		driver.manage().window().maximize();
	}


}
